package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 固定资产表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_fixed_assets")
@ApiModel(value = "固定资产表")
public class FixedAssets extends Model<FixedAssets> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "资产类别")
    private String assetsType;

    @ApiModelProperty(value = "资产名称")
    private String assetsName;

    @ApiModelProperty(value = "资产编号")
    private String assetsNum;

    @ApiModelProperty(value = "型号规格")
    private String assetsModel;

    @ApiModelProperty(value = "资产图片")
    private String assetsImg;

    @ApiModelProperty(value = "采购金额")
    private String assetsAmount;

    @ApiModelProperty(value = "购入时间")
    private Date buyTime;

    @ApiModelProperty(value = "有效截止日期")
    private Date stopTime;

    @ApiModelProperty(value = "使用部门（部门id）")
    private String departmentId;

    @ApiModelProperty(value = "使用人员（用户id）")
    private String userId;

    @ApiModelProperty(value = "供应商")
    private String supplierName;

    @ApiModelProperty(value = "负责人")
    private String dutyName;

    @ApiModelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "维保到期日")
    private Date expiredTime;

    @ApiModelProperty(value = "维保说明")
    private String warrantyDepict;

    @ApiModelProperty(value = "资产状态 （ 1-闲置  2-使用  3-过期）")
    private Integer assetsState;

    @ApiModelProperty(value = "是否删除（1-已删除 2-未删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "备注")
    private String remarks;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}